home *** CD-ROM | disk | FTP | other *** search
- /*
- File: PLStringFuncs.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- /*
- PLStringFuncs.h -- C string conversion functions for pascal
-
- Copyright Apple Computer,Inc. 1989, 1990
- All rights reserved
-
- */
-
- #ifndef __PLSTRINGFUNCS__
- #define __PLSTRINGFUNCS__
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- pascal short PLSTRCMP(ConstStr255Param str1, ConstStr255Param str2);
- pascal short PLSTRNCMP(ConstStr255Param str1, ConstStr255Param str2, short num);
- pascal StringPtr PLSTRCPY(StringPtr str1, ConstStr255Param str2);
- pascal StringPtr PLSTRNCPY(StringPtr str1, ConstStr255Param str2, short num);
- pascal StringPtr PLSTRCAT(StringPtr str1, ConstStr255Param str2);
- pascal StringPtr PLSTRNCAT(StringPtr str1, ConstStr255Param str2, short num);
- pascal Ptr PLSTRCHR(ConstStr255Param str1, short ch1);
- pascal Ptr PLSTRRCHR(ConstStr255Param str1, short ch1);
- pascal Ptr PLSTRPBRK(ConstStr255Param str1, ConstStr255Param str2);
- pascal short PLSTRSPN(ConstStr255Param str1, ConstStr255Param str2);
- pascal Ptr PLSTRSTR(ConstStr255Param str1, ConstStr255Param str2);
- pascal short PLSTRLEN(ConstStr255Param str);
- pascal short PLPOS(ConstStr255Param str1, ConstStr255Param str2);
-
- #ifdef __cplusplus
- inline short PLstrcmp(ConstStr255Param str1, ConstStr255Param str2) { return PLSTRCMP(str1, str2); }
- inline short PLstrncmp(ConstStr255Param str1, ConstStr255Param str2, short num) { return PLSTRNCMP(str1, str2, num); }
- inline StringPtr PLstrcpy(StringPtr str1, ConstStr255Param str2) { return PLSTRCPY ( str1, str2); }
- inline StringPtr PLstrncpy(StringPtr str1, ConstStr255Param str2, short num) { return PLSTRNCPY(str1, str2, num); }
- inline StringPtr PLstrcat(StringPtr str1, ConstStr255Param str2) { return PLSTRCAT(str1, str2); }
- inline StringPtr PLstrncat(StringPtr str1, ConstStr255Param str2, short num) { return PLSTRNCAT ( str1, str2, num ); }
- inline Ptr PLstrchr(ConstStr255Param str1, short ch1) { return PLSTRCHR(str1, ch1); }
- inline Ptr PLstrrchr(ConstStr255Param str1, short ch1) { return PLSTRRCHR( str1, ch1); }
- inline Ptr PLstrpbrk(ConstStr255Param str1, ConstStr255Param str2) { return PLSTRPBRK(str1, str2); }
- inline short PLstrspn(ConstStr255Param str1, ConstStr255Param str2) { return PLSTRSPN(str1, str2); }
- inline Ptr PLstrstr(ConstStr255Param str1, ConstStr255Param str2) { return PLSTRSTR(str1, str2); }
- inline short PLstrlen(ConstStr255Param str) { return PLSTRLEN(str); }
- inline short PLpos(ConstStr255Param str1, ConstStr255Param str2) { return PLPOS(str1, str2); }
- #endif
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-